package com.yxx.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxx.entity.User;
import com.yxx.entityModel.vo.query.UserQuery;
import com.yxx.entityModel.vo.response.UserBackResponse;
import com.yxx.entityModel.vo.response.UserMenuResponse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author yuxiangxun
 * @date 2025/1/19
 * @apiNote
 */
@Repository
public interface UserMapper extends BaseMapper<User> {
    /**
     * 查看用户后台数量
     * @param userQuery
     * @return
     */
    Long selectUserCount(@Param("param") UserQuery userQuery);

    /**
     * 查询后台用户列表
     * @param userQuery
     * @return
     */
    List<UserBackResponse> selectUserList(@Param("param") UserQuery userQuery);
}
